package flc.ast.fragment.house;

import android.view.View;

import androidx.fragment.app.Fragment;

import com.stark.calculator.mortgage.BaseMortFragment;
import com.stark.calculator.mortgage.model.LoanModel;

import flc.ast.R;

import flc.ast.databinding.FragmentHouseKind3Binding;
import stark.common.basic.view.InputUnitView;
import stark.common.basic.view.TextSwitch;

/**
 * A simple {@link Fragment} subclass.
 * Use the {@link HouseKind3Fragment#newInstance} factory method to
 * create an instance of this fragment.
 */
public class HouseKind3Fragment extends BaseMortFragment<FragmentHouseKind3Binding> {

    //贷款金额
    @Override
    protected InputUnitView getFundAmountView() {
        return mDataBinding.iuHouseKind3Dkje;
    }

    //贷款利率
    @Override
    protected InputUnitView getFundInterestView() {
        return mDataBinding.iuHouseKind3Dkll;
    }

    @Override
    protected InputUnitView getCommercialAmountView() {
        return null;
    }

    @Override
    protected TextSwitch getInterestMethodView() {
        return null;
    }

    @Override
    protected View getLprBasisContainer() {
        return null;
    }

    @Override
    protected View getBaseInterestContainer() {
        return null;
    }

    @Override
    protected InputUnitView getLprView() {
        return null;
    }

    @Override
    protected TextSwitch getBasisAddSubView() {
        return null;
    }

    @Override
    protected InputUnitView getBasisInputView() {
        return null;
    }

    @Override
    protected InputUnitView getCommercialInterestView() {
        return null;
    }

    @Override
    protected InputUnitView getInterestDiscountView() {
        return null;
    }

    //贷款年限
    @Override
    protected InputUnitView getYearView() {
        return mDataBinding.iuHouseKind3Dknx;
    }

    @Override
    protected TextSwitch getLoanMethodView() {
        return null;
    }

    @Override
    protected int onCreate() {
        return R.layout.fragment_house_kind3;
    }

    @Override
    protected void initData() {
        mDataBinding.tvStartCal.setOnClickListener(this);
    }

    @Override
    protected void onClickCallback(View v) {
        switch (v.getId()) {
            case R.id.tvStartCal:
                calculate();
                break;
        }
    }

    @Override
    protected void goRetActivity(LoanModel loanModel) {
        super.goRetActivity(loanModel);
    }
}